package com.example.mobiledatapackage.service;

import com.example.mobiledatapackage.domain.User;
import com.example.mobiledatapackage.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User selectByPhone(String phone) {
        return userMapper.selectByPhone(phone);
    }

    public User selectByUserId(String userId) {
        return userMapper.selectByUserId(userId);
    }
}
